package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    public PageResult findPage(QueryPageBean pageBean);

    public void add(Integer[] permissionIds, Integer[] menuIds, Role role);

    void delete(Integer id);

    Role findById(Integer id);

    List<Integer> findPermissionIdByRoleId(Integer id);

    List<Integer>  findMenuIdByRoleId(Integer id);

    void edit(Role role, Integer[] permissionIds, Integer[] menuIds);
}
